<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>订单页面</title>
<link href="${pageContext.request.contextPath}/css/common.css"
	rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/cart.css"
	rel="stylesheet" type="text/css" />
<link
	href="${ pageContext.request.contextPath }/static/bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet" />
</head>

<body>
	<div class="container cart">
		<br />
			<div class="span24">
				<table>
					<tboby>
					<th colspan="5">订单编号：${orders.oid}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;订单生成时间：${strTime}</th>
					<tr>
						<td>收货人姓名：${orders.accepter}</td>
					</tr>
					<tr>
						<td>收货人地址:：${orders.receiveinfo}</td>
					</tr>
					<tr>
						<td>收货人电话：${orders.phonum}</td>
					</tr>

					</tboby>
				</table>
				<table>

					<tbody>
						<tr>
							<th>图片</th>
							<th>商品</th>
							<th>价格</th>
							<th>数量</th>
							<th>小计</th>
						</tr>
						<c:forEach items="${orders.oiList}" var="orderItem">
							<tr>
								<td width="60"><input type="hidden" name="id" value="22" />
									<img width="40" height="45"
									src="${pageContext.request.contextPath }/${orderItem.product.image}" /></td>
								<td><a target="_blank"> ${orderItem.product.pname}</a></td>
								<td>${orderItem.product.shopPrice}</td>
								<td class="quantity" width="60">${orderItem. count}</td>
								<td width="140"><span class="subtotal">${orderItem.subtotal}</span>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		<div align="right" style="padding-top: 20px;">
			<input class="btn btn-info" type="button" onclick="history.go(-1)"
				value="返回" style="margin-left: 600px;" align="right" />
		</div>
	</div>
</body>
</html>

